<?php echo $this->Session->flash(); ?>
<fieldset>
    <legend><?php echo __('Dados da ocorrência'); ?></legend>
    <dl class="dl-horizontal">

        <dt><?php echo __('Protocolo'); ?></dt>
        <dd>
            <?php echo h($sisdecOccurrence['SisdecOccurrence']['protocolo']); ?>

        </dd>
        <dt><?php echo __('Data Abertura'); ?></dt>
        <dd>
            <?php echo h($sisdecOccurrence['SisdecOccurrence']['data_abertura']); ?>

        </dd>
        <dt><?php echo __('Descricao'); ?></dt>
        <dd>
            <?php echo h($sisdecOccurrence['SisdecOccurrence']['descricao']); ?>

        </dd>
        <dt><?php echo __('Tipologia'); ?></dt>
        <dd>
            <?php echo $this->Html->link($sisdecOccurrence['SisdecTipology']['tipo'], array('controller' => 'sisdec_tipologies', 'action' => 'view', $sisdecOccurrence['SisdecTipology']['id'])); ?>

        </dd>
        <dt><?php echo __('Regional'); ?></dt>
        <dd>
            <?php echo h($sisdecOccurrence['SisdecPlace']['area']); ?>

        </dd>
        <dt><?php echo __('status'); ?></dt>
        <dd>
            <?php echo h($sisdecOccurrence['SisdecSituation']['status']); ?>

        </dd>
        <dt><?php echo __('Fonte da informação'); ?></dt>
        <dd>
            <?php echo h($sisdecOccurrence['SisdecSource']['nome_source']); ?>

        </dd>
        <dt><?php echo __('Endereço'); ?></dt>
        <dd>
            <?php echo h($sisdecOccurrence['SisdecOccurrence']['endereco_occurrence']); ?>
            <?php echo $this->Html->link('<i class="fa fa-map-marker fa-lg"></i>', array('action' => 'map', $sisdecOccurrence['SisdecOccurrence']['endereco_occurrence']), array('data-placement'=>'top','data-toggle'=>'tooltip','title'=>'mapa', 'id' => 'various1','class'=>'fancybox fancybox.iframe','escape' => false)); ?>
        </dd>
        <dt><?php echo __('Bairro'); ?></dt>
        <dd>
            <?php echo h($sisdecOccurrence['SisdecNeighborhood']['nome_neighborhood']); ?>

        </dd>
        <dt><?php echo __('Historico'); ?></dt>
        <dd>
            <?php echo $this->Html->link('<i class="fa fa-clock-o fa-lg"></i>', array('controller'=>'SisdecDescriptions','action' => 'index', $sisdecOccurrence['SisdecOccurrence']['id']), array('title'=>'ver historico', 'id' => 'various1','class'=>'fancybox fancybox.iframe','escape' => false)); ?>
        </dd>
    </dl>
</fieldset>

<fieldset>
    <legend><?php echo __('Dados do solicitante'); ?></legend>
    <dl class="dl-horizontal">
        <?php if (!empty($sisdecOccurrence['SisdecRequester'])): ?>

            <dt><?php echo __('Nome'); ?></dt>
            <dd>
                <?php echo $sisdecOccurrence['SisdecRequester'][0]['nome_requester']; ?>
            </dd>
            <dt><?php echo __('cpf'); ?></dt>
            <dd>
                <?php echo $sisdecOccurrence['SisdecRequester'][0]['cpf']; ?>
            </dd>
            <dt><?php echo __('endereço'); ?></dt>
            <dd>
                <?php echo $sisdecOccurrence['SisdecRequester'][0]['endereco_requester']; ?>
            </dd>
            <dt><?php echo __('Telefone'); ?></dt>
            <dd>
                <?php echo $sisdecOccurrence['SisdecRequester'][0]['telefone']; ?>
            </dd>
            
        <?php endif; ?>
    </dl>
</fieldset>
<a href="javascript:history.go(-1);">Voltar</a>
<?php echo $this->Html->link(__('Editar'), array('action' => 'edit', $sisdecOccurrence['SisdecOccurrence']['id'])); ?>

<?php echo $this->Html->script('fancybox/fancy.js'); ?>




